package org.singledog.form.builder.parser.freemarker.view.dataset;

import org.singledog.form.builder.datasource.dto.BasicKVPair;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class SimpleSelectDataSource {

    public List<BasicKVPair> getData(String code, List<String> test) {
        List<BasicKVPair> list = new ArrayList<>();
        list.add(new BasicKVPair("1", "北京123", false));
        list.add(new BasicKVPair("2", "上海123", false));
        list.add(new BasicKVPair("3", "广州123", false));
        return list;
    }

    public List<BasicKVPair> getData(String code, List<List<String>> test, Map<String, List<BasicKVPair>> map) {
        List<BasicKVPair> list = new ArrayList<>();
        list.add(new BasicKVPair("4", "北京123", false));
        list.add(new BasicKVPair("5", "上海123", false));
        list.add(new BasicKVPair("6", "广州123", false));
        return list;
    }

}
